class CreateModuli < ActiveRecord::Migration
  def self.up
    create_table :moduli do |t|
      t.string     "name"
      t.text       "descrizione"
      t.string     "file_modulo_file_name"
      t.string     "file_modulo_content_type"
      t.integer    "file_modulo_file_size"
      t.datetime   "file_modulo_updated_at"
      #
      t.integer  "created_by"
      t.integer  "updated_by"
      t.datetime "created_at"
      t.datetime "updated_at"
      t.datetime "deleted_at"
      #
      t.timestamps
    end

    create_table "centri_costo_moduli", :id => false, :force => true do |t|
      t.references :centro_costo, :modulo
    end
  end

  def self.down
    drop_table :moduli
    drop_table :centri_costo_moduli
  end
end
